* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.iconfont {
    font-size: 20px;
}

.menu {
    position: absolute;
    width: 60px;
    height: 750px;
    background-color: #111727;
    z-index: 2;
    top: 8%;
    margin: auto;
    transition: 0.3s ease 0.15s;
    font-family: sans-serif;
}

.menu a {
    text-decoration: none;
}

.menu .actionsBar {
    width: 100%;
    height: 10%;
    padding: 0.5rem;
    overflow: hidden;
}

.menu .actionsBar div {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-around;
    border-radius: 0.5rem;
    transition: 0.3s ease;
}

.menu .actionsBar div button {
    background-color: transparent;
    outline: none;
    border: none;
    border-radius: 0.5rem;
    color: #fff;
    width: 45px;
    height: 45px;
    transition: 0.3s ease;
    font-size: 1rem;
}

.menu .actionsBar div button:hover {
    background-color: #364152;
}

.menu .actionsBar div h3 {
    width: calc(100% - 45px);
    text-align: center;
}

.menu .optionsBar {
    overflow: hidden;
    display: flex;
    width: 100%;
    height: 60%;
    padding: 0 0.5rem;
    align-items: center;
    flex-direction: column;
}

.menu .optionsBar .menuItem {
    width: 100%;
    height: 45px;
    margin: 0.3rem;
}

.menu .optionsBar .menuItem .menuOption {
    font-size: 1rem;
    outline: none;
    border: none;
    background-color: transparent;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-around;
    border-radius: 0.5rem;
    transition: 0.3s ease;
}

.menu .optionsBar .menuItem .menuOption:hover {
    background-color: #364152;
}

.menu .optionsBar .menuItem .menuOption i {
    width: 45px;
    text-align: center;
    color: #fff;
}

.menu .optionsBar .menuItem .menuOption h5 {
    text-align: left;
    width: calc(100% - 45px);
}

.menuText {
    color: rgba(255, 255, 255, 0.8);
    transform: translateX(-250px);
    opacity: 0;
    transition: transform 0.3s ease 0.1s;
}

.menu .about {
    width: 100%;
    height: 10%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 1rem;
    flex-direction: column;
    font-family: sans-serif;
    opacity: 0;
    white-space: nowrap;
    transition: 0.3s ease 0.15s;
}

.menu.open {
    width: 240px;
}

.menuText.open2 {
    opacity: 1;
    transform: translateX(0);
}

.menu .menuBreak {
    width: 100%;
    height: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu .menuBreak hr {
    width: 70%;
    height: 3px;
    background-color: #fff;
    border: none;
    border-radius: 5px;
}

.menu .themeBar {
    overflow: hidden;
    width: 100%;
    height: 10%;
    padding: 0.5rem;
}

.menu .themeBar div {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-around;
    border-radius: 0.5rem;
    transition: 0.3s ease;
}

.menu .themeBar div button {
    background-color: transparent;
    outline: none;
    border: none;
    border-radius: 0.5rem;
    color: #fff;
    width: 100%;
    height: 45px;
    transition: 0.3s ease;
    font-size: 1rem;
}

.menu .themeBar div button:hover {
    background-color: #364152;
}

.menu .menuUser {
    width: 100%;
    height: 10%;
}

.menu .menuUser a {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-decoration: none;
    padding: 0.5rem;
    position: relative;
}

.menu .menuUser a div {
    width: 45px;
    height: 45px;
    position: relative;
    border-radius: 0.5rem;
}

.menu .menuUser a div img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0.5rem;
}

.menu .menuUser a .Username {
    width: calc(70% - 45px);
}

.menu .menuUser a p {
    width: calc(30% - 45px);
}

.menu .menuUser a:hover p {
    animation: animArrow 0.3s ease 2;
}

@keyframes animArrow {
    0% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(5px);
    }

    100% {
        transform: translateX(0);
    }
}
.menu .menuUser .userInfo {
    position: absolute;
    width: 20rem;
    height: 18rem;
    opacity: 0;
    pointer-events: none;
    top: 34%;
    left: 1.5rem;
    transition: 0.3s ease;
    transform: scale(0);
    transform-origin: bottom left;
}

.menu .menuUser:hover .userInfo {
    pointer-events: all;
    opacity: 1;
    transform: scale(1);
}



.content, .menu ,.menu.open{
    transition: margin-left 0.3s ease, width 0.3s ease; /* 平滑过渡效果 */
}
/* 内容区域样式 */
.content {
    display: flex;
    flex-direction: column; /* 确保内容垂直排列 */
    width: calc(100% - 250px); /* 初始宽度减去侧边栏宽度 */
    transition: width 0.3s ease; /* 平滑过渡效果 */
    margin-left: 250px; /* 初始侧边距等于侧边栏宽度 */
    overflow-x: auto; /* 如果内容超出宽度，允许横向滚动 */
}

/* 表格容器样式 */
.table-container {
    width: 100%; /* 表格容器宽度为100% */
    overflow-x: auto; /* 如果内容超出，允许横向滚动 */
    transition: width 0.3s ease; /* 平滑过渡效果 */
    border-top: 1px solid grey;
    margin-top: 10px;
}

/* 表格本身样式 */
.table {
    width: 100%; /* 表格宽度为100% */
    table-layout: auto; /* 表格布局自动 */
    white-space: nowrap; /* 禁止文本换行 */
}

/* 表头和表尾样式 */
th, td {
    padding: 8px; /* 单元格内边距 */
    text-align: left; /* 文本左对齐 */
    border: 1px solid #ddd; /* 单元格边框 */
    max-width: 300px; /* 设置最大宽度 */
    overflow: auto; /* 超出部分隐藏 */
}

/* 当侧边栏收缩时的样式 */
.content.collapsed {
    width: calc(100% - 65px); /* 宽度减去收缩后的侧边栏宽度 */
    margin-left: 65px; /* 边距等于收缩后的侧边栏宽度 */
}

/* 响应式设计 */
@media (max-width: 768px) {
    .content {
        width: 100%; /* 在小屏幕上，内容宽度为100% */
        margin-left: 0; /* 移除左边距 */
    }
    .content.collapsed {
        width: 100%; /* 保持100%宽度 */
    }
}

.page-information{
    position: relative; /* 或者 absolute 或 fixed */
    width: 100%;
    height: 70px;
    margin-top: 15px;
}
.page-information ul{
    position: absolute; /* 绝对定位 */
    bottom: 0; /* 距离底部0 */
    left: 0; /* 距离左边0 */
    right: 0; /* 距离右边0 */
    width: 100%; /* 宽度100% */
    background: #fff; /* 背景色 */
    box-shadow: 0 -1px 5px rgba(0,0,0,0.2); /* 底部阴影 */
    padding: 10px 0; /* 内边距 */
    list-style: none; /* 移除列表样式 */
    display: flex; /* 使用Flex布局 */
    justify-content: center; /* 水平居中 */
}

.button-1{
    /*position: relative;*/
    width: 7%;
    height: 32px;
    font-size: 16px;
    color: #fff;
    /*background: #ceebff;*/
    background: #409EFF;
    cursor: pointer;
    border: none;
    border-radius: 3px;
    outline: none;
}
.button-1 a{
    text-decoration: none;
    color: #fff;
}
.button-1:hover{
    background: rgba(64, 158, 255, 0.65);
}
.button-update{
    width: 27px;height: 20px;border-radius:3px;background-color: #409EFF;border: none;
}
.button-update:hover{
    background-color: rgba(102, 177, 255, 0.61);
}
.button-delete{
    width: 27px;height: 20px;border-radius:3px;background-color: #F56C6C;border: none;
}
.button-delete:hover{
    background-color: rgba(247, 137, 137, 0.6);
}
tr:hover {
    background-color: #FAFAFA; /* 悬停时的背景颜色 */
    cursor: pointer; /* 鼠标悬停时鼠标指针样式 */
}

.pagination .page-link.active {
    background-color: gray; /* 激活状态的背景颜色 */
    color: white; /* 激活状态的文本颜色 */
}

.form-content{
    width: 98%;
    margin: 20px auto;
    padding: 20px;
    background-color: #fff;
    box-shadow: 0 1px 9px rgba(0, 0, 0, 0.3);
    border-radius: 8px;
}

/* 用户信息容器样式 */
.user-info {
    position: relative;
    left: 26%;
    width: 75%;
}

/* 用户信息项样式 */
.user-info-item {
    padding: 10px 0;
}

/* 用户信息标题样式 */
.user-info-title {
    font-weight: bold;
    margin-bottom: 5px;
    color: #555;
}

/* 用户信息内容样式 */
.user-info-content {
    font-size: 16px;
    color: #333;
    width: 50%;
    height: 36px;
}

/* 修改按钮样式 */
.btnn {
    display: inline-block; /* 使按钮正常显示文本 */
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    text-align: center;
    text-decoration: none; /* 去掉下划线 */
    border-radius: 5px;
    transition: background-color 0.3s; /* 过渡效果 */
    border: none;
    position: relative;
    left: 34%;
    margin-top: 10px;
}

.btnn:hover {
    background-color: #005bb5; /* 悬停时颜色变化 */
}
.btnn a{
    text-decoration: none;
    color: #fff;
}


.button_admin_status {
    width: 100%;
    height: 25px;
    border-radius: 3px;
    cursor: pointer;
    display: inline-block;
    border: none;
    background: none;
    position: relative;
}

.button_admin_status button {
    width: 100%;
    height: 100%;
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
    display: flex;  /* 使用 flex 布局 */
    align-items: center;  /* 垂直居中 */
    justify-content: center;  /* 水平居中 */
}

.button_admin_status i {
    font-size: 16px;
}

.dropdown-menu-admin {
    display: none;
    position: fixed;
    background-color: #f9f9f9;
    min-height: 38px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    padding: 5px;
    border-radius: 4px;
    white-space: nowrap;
    text-align: center;
    transform: translateX(-18%);  /* 水平居中对齐 */
}

.dropdown-item-admin {
    display: inline-block;
    padding: 5px;
    cursor: pointer;
    width: auto;
    text-align: center;
    margin: 0 2px;
}

.dropdown-item-admin:hover {
    background-color: #e0d9d9;
}

.dropdown-item-admin i {
    font-size: 18px;
}

.show-admin {
    display: block;
}